package com.yizhuoyan.his.webapi.controller.financialstaff.vo;

import com.yizhuoyan.his.dto.ListCostDto;
import lombok.Data;

@Data
public class RegistrationFeeVo {
    private String id;
    /**
     * 病历信息
     */
    private CaseInformationVo caseVo;
    /**
     * 费用信息
     */
    private CostVo costVo;

    public static RegistrationFeeVo  of(ListCostDto e){
        RegistrationFeeVo registrationFeeVo=new RegistrationFeeVo();
        CaseInformationVo vo=new CaseInformationVo();
        CostVo costVo=new CostVo();
        registrationFeeVo.setId(e.getId());
        vo.setCaseNo(e.getCaseNo());
        vo.setRealName(e.getRealName());
        vo.setGender(e.getGender());
        vo.setIdCard(e.getIdCard());
        vo.setBirthDate(e.getBirthDate());
        vo.setAge(e.getAge());
        vo.setAgeType(e.getAgeType());
        vo.setHomeAddress(e.getHomeAddress());
        vo.setVisitDate(e.getVisitDate());
        vo.setVisitNoon(e.getVisitNoon());
        vo.setSettleType(e.getSettleType());
        vo.setRegisterTime(e.getRegisterTime());
        vo.setDepartmentName(e.getDepartmentName());
        vo.setHosDoctor(e.getHosDoctor());
        costVo.setPatientCots(e.getPatientCots());

        registrationFeeVo.setCaseVo(vo);
        registrationFeeVo.setCostVo(costVo);

        return registrationFeeVo;



    }

}
